﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using LngT.Managers;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels.Tcp;
using System.Runtime.Remoting.Channels;

namespace LngT
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private Manager _manager = Manager.Instance;

        private void button1_Click( object sender, EventArgs e )
            {
            ChannelServices.RegisterChannel( new TcpChannel( 50050 ), false );
            
            ObjRef refGreeter = RemotingServices.Marshal( _manager, "Manager" );
            }
    }
}